<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2016/12/22
 * Time: 17:48
 */

namespace YMApi\Model;


use Think\Model;

/**
 * Class HomeTemplateSeminarModel
 * @package SDXApi\Model
 */
class HomeTemplateStencilSeminarModel extends Model
{
	/**
	 * @var string
	 */
	protected $tableName = 'home_template_stencil_seminar';


	/**
	 * Created by Jerry
	 * @param $stencil_id
	 * @return mixed
	 */
	public function find_seminars_by_stencil_id($stencil_id)
	{
		$where = array(
			'stencil_id'	=>	$stencil_id,
		);

		return $this->where($where)->order('sort desc,id desc')->select();
	}
}